﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Hisun.UserControl.Common.DataPageIndex
{


    /// <summary>
    /// 
    /// Copyright (C) 2008 HOHO``
    /// All rights reserved
    /// NameSpace:Hisun.UserControl.Common.DataPageIndex.DataPageNav
    /// Description :
    /// Created By QiuZhongJie At 2008/10/28 18:41
    /// </summary>
    public partial class DataPageNav : System.Web.UI.UserControl
    {

        private int totalRecords;

        public int TotalRecords
        {
            get { return totalRecords; }
            set { totalRecords = value; }
        }
        private int onePageDataCount;

        public int OnePageDataCount
        {
            get { return onePageDataCount; }
            set { onePageDataCount = value; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (onePageDataCount != 0)
            {
                int pages = totalRecords / onePageDataCount;
            }

        }

        public void onButtonAction(object source, int clickCount)
        {
            //for delegate
        }

        protected void lnkBtnHome_Click(object sender, EventArgs e)
        {

        }

        protected void lnkBtnPre_Click(object sender, EventArgs e)
        {

        }

        protected void lnkBtnNext_Click(object sender, EventArgs e)
        {

        }

        protected void lnkBtnEnd_Click(object sender, EventArgs e)
        {

        }
    }


}